package com.dailyblue.java.cloud.bookstroe.book.service.impl;

import com.dailyblue.cloud.bookstore.commons.bean.Books;
import com.dailyblue.cloud.bookstore.commons.util.JsonResult;
import com.dailyblue.cloud.bookstore.commons.util.ResultTool;
import com.dailyblue.java.cloud.bookstroe.book.mapper.BooksMapper;
import com.dailyblue.java.cloud.bookstroe.book.service.BookService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class BookServiceImpl implements BookService {
    @Resource
    private BooksMapper booksMapper;
    @Override
    public JsonResult findAllBooks() {
        return ResultTool.success(booksMapper.find());
    }
}
